﻿using UnityEngine;
using System.Collections;
using FairyGUI;

/// <summary>
/// 基础窗口
/// </summary>
public class UIBaseWindow {

    /// <summary>
    /// UI组件
    /// </summary>
    GComponent _uiComp;

    /// <summary>
    /// 获取UI组件
    /// </summary>
    public GComponent uiComp { get { return _uiComp; } }

    /// <summary>
    /// 初始化
    /// </summary>
    /// <param name="comp"></param>
    protected void Init(GComponent comp)
    {
        _uiComp = comp;
    }

    /// <summary>
    /// 退出
    /// </summary>
    public virtual void OnExit()
    {

    }
}
